<?php
namespace app\frontend\logic;
use \tpfcore\Core;

class User extends LogicBase
{
	public function getUser($data=[]){
		/*$validate = Core::loadValidate($this->name);
		$result = $validate->check(["name"=>"123"]);
		if(!$result){
			return [10040,$validate->getError()];
		}*/

		$user = Core::loadModel($this->name)->getList($data);

		return [0,"success",$user];
	}
	public function test(){
		return [RESULT_ERROR, "操作失败", null];
		//return [40040,"操作制作"];
	}
}